﻿@using DirectSell.Model.Money
@using Webdiyer.WebControls.Mvc;
@model  PagedList<RealMoney>
<div class="table-responsive">
    <table class="table table-bordered table-striped">
        @if (Model.Count > 0)
        {
            <tr>
                <th>序号</th>
                <th>会员编号</th>
                <th>会员姓名</th>
                <th>开户银行</th>
                <th>银行账号</th>
                <th>金额</th>
                <th>申请时间</th>
                <th>处理时间</th>
                <th>备注</th>
                <th>状态</th>
            </tr>

            foreach (var item in Model)
            {
                int i = 0;
                <tr>
                    <td>@(Model.StartItemIndex + i++)</td>
                    <td>@item.UserCode</td>
                    <td>@item.UserName</td>
                    <td>@item.BankName</td>
                    <td>@item.BankCode</td>
                    <td>@item.Amount</td>
                    <td>@item.ApplyTime</td>
                    @if (item.State == 0)
                    {
                        <td><p style="color:purple">暂未处理</p></td>
                    }
                    else
                    {
                        <td><p style="color:slateblue">@item.HandleTime</p></td>
                    }
                    <td>@item.Remark</td>

                    @if (item.State == 0)
                    {
                        <td><p style="color:purple">待审核</p></td>
                    }
                    else
                    {
                        <td><p style="color:slateblue">已审核</p></td>
                    }

                </tr>
            }

        }
        else
        {
            <tr><td>暂无相关记录</td></tr>
        }
    </table>
</div>
